package com.example.courier.mapper;

import com.example.courier.entity.Requester;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2025/9/6 10:40
 **/
@Mapper
public interface RequesterMapper {

    @Insert("""
INSERT INTO ha_requester (requester_id, user_id, phone, dormitory, credit_score, create_time, update_time, operator_id,
                          is_delete)
VALUES (#{requesterId}, #{userId}, #{phone}, #{dormitory}, #{creditScore}, now(), now(), null, 0);
""")
    void saveRequester(Requester requester);
}
